Skip to content

ExperimentalAPI CLI#428

Draft
timmarkhuff wants to merge 13 commits intomainfrom
tim/experimental-cli
Draft

ExperimentalAPI CLI#428
timmarkhuff wants to merge 13 commits intomainfrom
tim/experimental-cli

Conversation

@timmarkhuff
Copy link
Copy Markdown
Contributor

@timmarkhuff timmarkhuff commented Apr 27, 2026

  1. adds support for ExperimentalApi methods in CLI
  2. hides certain ExperimentalApi commands that shouldn't be brought into the CLI
  3. Organizes functions into groupings and alphabetizes them

@timmarkhuff timmarkhuff marked this pull request as draft April 28, 2026 16:36
Comment thread src/groundlight/cli.py
bound_method = getattr(gl, fake_method.__name__)
result = bound_method(*args, **kwargs)
if result is not None:
print(_format_result(result))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heavily biased as the one who wrote the original, but there should be more comments around this one line. This is the magic line that makes the whole thing happen

Comment thread src/groundlight/cli.py

# Maps method names to their rich_help_panel group label for the CLI help output.
# Applies to both stable and experimental commands.
_COMMAND_GROUPS: dict[str, str] = {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this adds maintenance overhead, new methods need to belong to a group. The original design tried to avoid that additional overhead, but in the age of AI maybe we don't care

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants